/*
 * @FilePath: \flutter_ducafecat_news_getx\lib\common\widgets\tag.dart
 * @Date: 2022-07-12 15:04:21
 * @LastEditTime: 2022-07-12 15:30:12
 * @Description: 一些小标签
 */
import 'package:flutter/material.dart';
import 'package:flutter_ducafecat_news_getx/common/values/colors.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

///红色章印
Widget textTagOne({required String one, required String two, double hw = 25}) {
  return Container(
    height: hw.h,
    width: hw.h,
    decoration: BoxDecoration(
        color: AppColors.tagText,
        borderRadius: BorderRadius.all(Radius.circular(5.h))),
    child: Column(
      children: [
        Text(one,
            style: TextStyle(
                fontSize: 9,
                fontWeight: FontWeight.bold, //文字加粗
                color: AppColors.primaryBackground)),
        Text(two,
            style: TextStyle(
                fontSize: 9,
                fontWeight: FontWeight.bold,
                color: AppColors.primaryBackground)),
      ],
    ),
  );
}
